package com.erlinyou.im.web.config.session;

import java.util.HashMap;

import org.springframework.session.Session;

public class SessionMap<K> extends HashMap<K, Session>{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Override
    public Session remove(Object key) {
		Session session = super.remove(key);
		if(session!=null ){
			SessionIndexMap.remove(session);
		}
    	return session;
    }
}
